

public class Test {
    public static void main(String[] args) {
        int[] array = {5,2,9,6,7,1,4,3};
//        TestHeap testHeap = new TestHeap();
//        int[] ret = testHeap.smallestK(array, 3);
//        System.out.println(Arrays.toString(ret));
        PriorityQueue queue = new PriorityQueue();
        queue.init(array);
        queue.createHeap();
        //queue.push(80);
        //queue.pollHeap();
        int peek = queue.peekHeap();
        System.out.println(peek);
        System.out.println();
    }
}
